package com.java.base.exercise.current;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author RenPu
 * @Date 2021/8/12 10:25
 * @Version 1.0
 * @Description:
 **/
public class AddRunnable implements Runnable {

    private ReentrantLock lock;


    //充血模型

    MyData data;

    public AddRunnable(MyData data) {
        this.data = data;
    }


    /**
     * 对j的值，进行加的操作
     */
    @Override
    public void run() {
        data.add();
    }
}
